﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Register.aspx.vb" Inherits="shassan6.Register1" %>
<%@ Register src="Webcontrols/Banner.ascx" tagname="Banner" tagprefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Register</title>
    <link href="Styles/Site.css" rel="stylesheet" type="text/css" media="all" />
</head>
<body>
 <uc1:Banner ID="Banner1" runat="server" />
    <form id="form1" runat="server">
    <div>
    <h2>
                        Create a New Account
       </h2>
       <p>
                        Use the form below to create a new account.
                    </p>
        <p>Account Information</p>
    <table>
    <tr>
        <td>User Name</td><td><asp:TextBox id="TxUsername" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="TxUsername" 
                CssClass="failureNotification" ErrorMessage="User Name is required." ToolTip="User Name is required." 
                ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td>Email</td><td><asp:TextBox id="TxEmail" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="EmailRequired" runat="server" ControlToValidate="TxEmail" 
                                     CssClass="failureNotification" ErrorMessage="E-mail is required." ToolTip="E-mail is required." 
                                     ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td>Password</td><td><asp:TextBox id="TxPassword" runat="server" 
            TextMode="Password"></asp:TextBox>
            <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="TxPassword" 
                                     CssClass="failureNotification" ErrorMessage="Password is required." ToolTip="Password is required." 
                                     ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
            </td>
    </tr>
    <tr>
        <td>Confirm Password</td><td><asp:TextBox id="TxConfirmPassword" runat="server" 
            TextMode="Password"></asp:TextBox>
             <asp:RequiredFieldValidator ControlToValidate="TxConfirmPassword" CssClass="failureNotification" Display="Dynamic" 
                                     ErrorMessage="Confirm Password is required." ID="ConfirmPasswordRequired" runat="server" 
                                     ToolTip="Confirm Password is required." ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                                <asp:CompareValidator ID="PasswordCompare" runat="server" ControlToCompare="TxPassword" ControlToValidate="TxConfirmPassword" 
                                     CssClass="failureNotification" Display="Dynamic" ErrorMessage="The Password and Confirmation Password must match."
                                     ValidationGroup="RegisterUserValidationGroup">*</asp:CompareValidator>
            </td>
    </tr>
    <tr>
        <td></td><td>
            <asp:Button ID="BtAdd" runat="server" Text="Creat User" ValidationGroup="RegisterUserValidationGroup"/></td>
    </tr>
    <tr>
        <td></td><td>
            <asp:Label ID="LbResult" runat="server" ></asp:Label></td>
    </tr>
    </table>
    
    </div>
    </form>
</body>
</html>
